﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="dados.aspx.cs" Inherits="projetoFinal.pages.administracao.usuarios.dados" %>
<%@ Register src="../../includes/menuLeft.ascx" tagname="menuLeft" tagprefix="menuEsquerda" %>
<%@ Register src="../../includes/menuTop.ascx" tagname="menuTop" tagprefix="menuTopo" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head id="Head1" runat="server">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>ProAdmin</title>
		<!--// FOLLOWING SCRIPT IS FOR PNG FIX IE5.5/IE6-->
		<!--[if lt IE 7]>
			<script defer type="text/javascript" src="../../js/pngfix.js"></script> 
		<![endif]--> 
		<link href="../../css/styles.css" rel="stylesheet" type="text/css" />
		<script src="../../js/valida.js" type="text/javascript"></script>
		<script language="javascript" type="text/javascript">
		    function verificaValor(form, campo1, campo2) {
		        var objCampo1 = eval('document.' + form + '.' + campo1 + '.value');
		        var objCampo2 = eval('document.' + form + '.' + campo2 + '.value');
		        if (objCampo1 == objCampo2) {
		            return true;
		        } else {
		            return false;
		        }
		    }

		    function validaSenhaEdicao() {
		        txtSenha = document.getElementById("txtSenha");
		        txtSenhaConfirmacao = document.getElementById("txtSenhaConfirmacao");
		        if ((txtSenha != null) && (txtSenhaConfirmacao != null)) {
		            //Verifica se preencheu a senha
		            if (txtSenha.value != "") {
		                txtSenhaConfirmacao.setAttribute("validate", "true");
		            } else {
		                txtSenhaConfirmacao.setAttribute("validate", "false");
		            }
		        }
		    }
		</script>
	</head>
	<body>
	    <form id="frmDados" runat="server" defaultbutton="btnSalvar">
		    <!--// Horisontal submenu edit starts -->
		    <div class="bodytext" id="submenu"></div>
		    <!--// Horisontal submenu edit ends -->
		    <menuTopo:menuTop ID="menuTopo" runat="server" />
		    <!--// leftcolumn edit starts -->
		    <!--// Mainnavigation edit starts -->
		    <div id="leftcolumn">
			    <menuEsquerda:menuLeft ID="menuEsquerda" runat="server" />
		    </div>
		    <!--// leftcolumn edit ends -->
		    <!--// Copyright ends -->
		    <!--// leftcolumn ends -->
		    <!--// Content starts -->
		    <div id="content">
			    <table width="772" border="0" cellpadding="0" cellspacing="0">
				    <tr>
					    <th valign="middle" bgcolor="#E5E5E5" scope="col"><h1 align="left"><asp:Literal ID="lblTitulo" runat="server" /></h1></th> <!--// H1 Title -->
				    </tr>
			    </table>

			    <div id="tables"> <!--// Tables starts -->
				    <table width="746" cellspacing="0">
                        <tr>
						    <td colspan="4">
							    <div id="information" runat="server" visible="false"> <!--// information message -->
								    <table width="450" cellpadding="0" cellspacing="12">
									    <tr>
										    <td width="52"><div align="center"><img src="../../images/icons/information.png" alt="information" width="18" height="18" /></div></td>
										    <td width="388" class="bodytext style4"><strong><asp:Literal ID="lblTitleInformation" runat="server" /></strong> <asp:Literal ID="lblMessageInformation" runat="server" /></td>
									    </tr>
								    </table>
							    </div>
							    <br />
						    </td>
					    </tr>
					    <tr>
						    <td><div class="bodytext_fieldstitle" id="fieldlarge">Código</div></td>
					    </tr>
					    <tr>
						    <td><div id="large"><input name="txtCodigo" type="text" class="fields" id="txtCodigo" value="" runat="server" size="80" disabled="disabled" /></div></td>
					    </tr>
					    <tr>
						    <td><div class="bodytext_fieldstitle" id="fieldlarge">Nome</div></td>
					    </tr>
					    <tr>
						    <td><div id="large"><input name="txtNome" type="text" class="fields" id="txtNome" runat="server" maxlength="100" value="" validate="true" mensagem="Nome em branco" size="80" /></div></td>
					    </tr>
					    <tr>
						    <td><div class="bodytext_fieldstitle" id="fieldlarge">Login</div></td>
					    </tr>
					    <tr>
						    <td><div id="large"><input name="txtLogin" type="text" class="fields" id="txtLogin" runat="server" maxlength="10" value="" validate="true" mensagem="Login em branco" size="80" /></div></td>
					    </tr>
					    <tr>
						    <td><div class="bodytext_fieldstitle" id="fieldlarge">senha</div></td>
					    </tr>
					    <tr>
						    <td><div id="large"><input name="txtSenha" type="password" class="fields" id="txtSenha" runat="server" maxlength="50" value="" size="80" /></div></td>
					    </tr>
					    <tr>
						    <td><div class="bodytext_fieldstitle" id="fieldlarge">confirmação de senha</div></td>
					    </tr>
					    <tr>
						    <td><div id="large"><input name="txtSenhaConfirmacao" type="password" class="fields" id="txtSenhaConfirmacao" mensagem="Confirmação de Senha" onValidate="verificaValor('frmDados', 'txtSenha', 'txtSenhaConfirmacao')" mensagemValidate="A senha e a confirmação devem ser iguais" runat="server" maxlength="50" value="" size="80" /></div></td>
					    </tr>
					    <tr>
						    <td><div class="bodytext_fieldstitle" id="fieldlarge">Nivel de acesso</div></td>
					    </tr>
					    <tr>
						    <td>
						        <div id="large">
						            <select name="selNivelAcesso" id="selNivelAcesso" runat="server" validate="true" mensagem="Nível de acesso em branco">
								    </select>
						        </div>
                            </td>
					    </tr>
					    <tr>
						    <td><div class="bodytext_fieldstitle" id="fieldlarge2"><input type="radio" id="radSeguradora" name="radEntidade" runat="server" value="1" checked onchange="javascript:document.getElementById('selPrestador').style.display = 'none'; document.getElementById('selSeguradora').style.display = ''; " /> Seguradora<br /><input type="radio" id="radPrestador" name="radEntidade" runat="server" value="2" onchange="javascript:document.getElementById('selSeguradora').style.display = 'none'; document.getElementById('selPrestador').style.display = ''; " /> Prestador</div></td>
					    </tr>
					    <tr>
						    <td>
						        <div id="large">
						            <select name="selSeguradora" id="selSeguradora" runat="server" validate="false" mensagem="Seguradora em branco">
								    </select>
                                    <select name="selPrestador" id="selPrestador" runat="server" validate="false" mensagem="Prestador em branco" style="display:none;">
								    </select>
						        </div>
						    </td>
					    </tr>
					    <tr>
						    <td><div class="bodytext_fieldstitle" id="fieldlarge">E-mail</div></td>
					    </tr>
					    <tr>
						    <td><div id="large"><input name="txtEmail" type="text" class="fields" id="txtEmail" runat="server" maxlength="150" value="" validate="true" mensagem="E-mail em branco" onvalidate="isMail('frmDados', 'txtEmail', false)" mensagemValidate="E-mail inválido" size="80" /></div></td>
					    </tr>
					    <tr>
						    <td><div class="bodytext_fieldstitle" id="fieldlarge">Função</div></td>
					    </tr>
					    <tr>
						    <td><div id="large"><input name="txtFuncao" type="text" class="fields" id="txtFuncao" runat="server" maxlength="50" value="" size="80" /></div></td>
					    </tr>
					    <tr>
						    <td><div class="bodytext_fieldstitle" id="fieldlarge">Status</div></td>
					    </tr>
					    <tr>
						    <td>
						        <div id="large">
						            <label style="color: #777777;font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><input type="radio" name="radStatus" id="radStatusAtivo" validate="true" mensagem="Status não escolhido" value="1" runat="server" /> Ativo</label><br />
						            <label style="color: #777777;font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><input type="radio" name="radStatus" id="radStatusInativo" value="2" runat="server" /> Inativo</label>
						        </div>
						    </td>
					    </tr>
					    <tr>
						    <td>
							    <div style="padding-left:20px;">
							        <asp:Button ID="btnSalvar" runat="server" CssClass="button" Text="Salvar" onclick="btnSalvar_Click" />
								    <input name="btnVoltar" type="button" class="button" id="btnVoltar" value="Voltar" onclick="javascript:window.location = 'listagem.aspx';" />
							    </div>
						    </td>
					    </tr>
				    </table>
				    <br />
				    <hr />
			    </div>
			    <!--// Tables ends -->
			    <p class="bodytext">&nbsp;</p>
			    <h1><br /></h1>
		    </div>
		    <!--// content ends -->  
		</form>
	</body>
</html>